package com.dollar.ruyuan_juc.actualProject.smartAlarmSystem;

import com.dollar.ruyuan_juc.blocker.Predicate;

import java.util.concurrent.Callable;

/**
 * 有条件的 调用
 * 封装条件和任务
 *
 * @param <V>
 */
public abstract class GuardedAction<V> implements Callable<V> {

    //保护性条件
    public Predicate guard;

    public GuardedAction(Predicate guard) {
        this.guard = guard;
    }
}
